package com.tjp.oss.service;

import com.tjp.oss.adapter.StorangeAdapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: jz-club
 * @description: 文件服务顶层抽象接口
 * @author: aaronTang
 * @create: 2024-03-07
 */
@Service
public class FileService {

    private final StorangeAdapter storangeAdapter;


    //通过构造函数的方式注入
    public FileService(StorangeAdapter storangeAdapter) {
        this.storangeAdapter = storangeAdapter;
    }

    public List<String> getAllButket() {
        return storangeAdapter.getAllButket();
    }



}
